class Animal {
    String name;
    public abstract void makeSound();
}

class Tiger extends Animal {
    @Override
    public void makeSound() {
        System.out.println("Tiger: Roar!");
    }
}

class Elephant extends Animal {
    @Override
    public void makeSound() {
        System.out.println("Elephant: Trumpet!");
    }
}

class Fox extends Animal {
    @Override
    public void makeSound() {
        System.out.println("Fox: Yip Yip!");
    }
}

class Panda extends Animal {
    @Override
    public void makeSound() {
        System.out.println("Panda: Bleat!");
    }
}

public class Main {
    public static void main(String[] args) {
        Animal[] animals = new Animal[10];  // 假设创建10个动物对象示例
        for (int i = 0; i < animals.length; i++) {
            int randomChoice = (int) (Math.random() * 4);
            switch (randomChoice) {
                case 0:
                    animals[i] = new Tiger();
                    break;
                case 1:
                    animals[i] = new Elephant();
                    break;
                case 2:
                    animals[i] = new Fox();
                    break;
                case 3:
                    animals[i] = new Panda();
                    break;
            }
        }

        for (Animal animal : animals) {
            animal.makeSound();
        }
    }
}